package com.kefu.sys.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;


@Data
@TableName(value="sys_role")
@ApiModel(description="角色")
public class SysRole implements Serializable {
    /**
     * 主键
     */
    
    @TableId(value="role_id")
    @NotEmpty
    @ApiModelProperty(name = "roleId", value = "主键")
    private String roleId;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(name = "tenantId", value = "租户")
    private String tenantId;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    @ApiModelProperty(name = "roleName", value = "角色名称")
    private String roleName;

    /**
     * 角色描述
     */
    @TableField(value = "role_desc")
    @ApiModelProperty(name = "roleDesc", value = "角色描述")
    private String roleDesc;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(name = "createUser", value = "创建人")
    private String createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Long updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(name = "updateUser", value = "更新人")
    private String updateUser;

    @TableField(value = "role_type")
    @ApiModelProperty(value = "角色类型：0.默认角色(企业最大菜单权限集合，客户不能自己修改)，1.自建角色")
    private Integer roleType;

    private static final long serialVersionUID = 1L;
}